package com.ruoyi.ebike.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 ebike_user
 * 
 * @author ruoyi
 * @date 2024-12-31
 */
public class EbikeUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 昵称 */
    @Excel(name = "昵称")
    private String username;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 实名认证标志，0表示未认证，1表示已认证 */
    @Excel(name = "实名认证标志，0表示未认证，1表示已认证")
    private Long idNumberTag;

    /** 身份证验证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "身份证验证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 小程序唯一标识 */
    private String openId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 头像 */
    private String avatar;

    /** 真实金额 */
    private BigDecimal realMoney;

    /** 卡券金额 */
    private BigDecimal cardMoney;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }
    public void setIdNumberTag(Long idNumberTag) 
    {
        this.idNumberTag = idNumberTag;
    }

    public Long getIdNumberTag() 
    {
        return idNumberTag;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setRealMoney(BigDecimal realMoney) 
    {
        this.realMoney = realMoney;
    }

    public BigDecimal getRealMoney() 
    {
        return realMoney;
    }
    public void setCardMoney(BigDecimal cardMoney) 
    {
        this.cardMoney = cardMoney;
    }

    public BigDecimal getCardMoney() 
    {
        return cardMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("name", getName())
            .append("idNumber", getIdNumber())
            .append("idNumberTag", getIdNumberTag())
            .append("checkTime", getCheckTime())
            .append("openId", getOpenId())
            .append("phoneNumber", getPhoneNumber())
            .append("avatar", getAvatar())
            .append("realMoney", getRealMoney())
            .append("cardMoney", getCardMoney())
            .toString();
    }
}
